home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ewebedit / edit.cfm < prev    next >
Text File  |  1999-06-27  |  5KB  |  116 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4.     <title>EKtron WYSIWYG Editor</title>
  5.     <meta name="keywords" content="ecommerce, electronic commerce, web design, software engineering"> 
  6.     <meta name="Author" content="EKtron, Inc.">
  7. </head>
  8.     <CFQUERY NAME="getimages" DATASOURCE="editor">
  9.         Select image_title, image_location
  10.         From images 
  11.         Order by image_title
  12.     </CFQUERY> 
  13.     <cfwddx action="CFML2WDDX" input="#getimages#" output="ImageWDDXPacket">
  14.     <CFQUERY NAME="gethyperlinks" DATASOURCE="editor">
  15.         Select hyperlink_title, hyperlink_location
  16.         From hyperlink 
  17.         Order by hyperlink_title
  18.     </CFQUERY>
  19.    <cfwddx action="CFML2WDDX" input="#gethyperlinks#" output="HyperlinkWDDXPacket">
  20.    <CFQUERY NAME="getfonts" DATASOURCE="editor">
  21.         Select FONT_FACE
  22.         From fonts 
  23.         Order by FONT_FACE
  24.     </CFQUERY> 
  25.  
  26.     <cfwddx action="CFML2WDDX" input="#getfonts#" output="FontWDDXPacket">
  27.  
  28. <body bgcolor="white">
  29. <table width="700" cellpadding="0" cellspacing="0" border="0">
  30. <tr>
  31.     <td width="113" height="35" valign="TOP" bgcolor="#639C63"><a href="http://www.ektron.com"><img src="EKlogo.gif" width=113 height=35 alt="" border=0></a></td>
  32.     <td width="575" align="CENTER" valign="BOTTOM" bgcolor="#639C63"></td>
  33. </tr>
  34. <tr>
  35.     <td align="CENTER" valign="TOP" bgcolor="#639C63"><img src="http://www.ektron.com/images/space.gif" width=1 height=400 alt="" border="0"></td>
  36.     <td align="CENTER">
  37.     <cfif IsDefined("edit_id")>  <!--- Which record in the database to edit --->
  38.         <cfquery datasource="editor" name="q_editor">
  39.             select edit_title, edit_html, edit_id from WYSIWYG where edit_id = #edit_id#    
  40.         </cfquery>
  41.         <cfform action="index.cfm" method="POST" name="frmMain" enctype="multipart/form-data">
  42.             <table width="90%">
  43.                 <tr>
  44.                     <td><font size="2" face="verdana, arial, helvetica">Title:</font></td>
  45.                     <td><cfinput type="Text" name="edit_title" value="#q_editor.edit_title#" message="Title is required to continue." required="Yes" size="62" maxlength="255"></td>
  46.                 </tr>
  47.                 <tr>
  48.                     <td valign="top"><font size="2" face="verdana, arial, helvetica">Text:</font></td>
  49.                     <td>
  50.                         <!--- CF_WebEditor: 
  51.                          codebase=path to the directory, If left blank then local path
  52.                          version=Version number needs to agree with CAB file version numberl
  53.                          license= If you run your browser on the local server the editor will work 127.0.0.1 means your local machine, we also test for C: and no license is required
  54.                          license2= Support 2 license key for the production server and test server.
  55.                          font= We globaly set the Font
  56.                          width= Width of the Editor Control
  57.                          height= Height of the Editor Conrol
  58.                          htmlcode=When the editor starts, what is written to this field will show up in the editor.
  59.                          editorsinform=the number of editors in the form)
  60.                          editornumber=the number of the current editor in the form                 
  61.                          form="frmMain"   The control will need to be in a form so when you post the form the returnfield is posted as a hidden field
  62.                          button="Button">  The name="XXXXX" of the Button used to submit the form.
  63.                          Note that the CF_WebEditor needs to be placed between Form tags..
  64.                          --->
  65.                     
  66.                         <cf_webeditor 
  67.                             codebase=""
  68.                             version="2,3,0,0"
  69.                             license="127.0.0.1?650630331830908"
  70.                             License2="localhost?850330421323576"
  71.                              font="Arial"
  72.                             width="565"
  73.                             height="400"
  74.                             htmlcode="#q_editor.edit_html#"
  75.                             form="frmMain"
  76.                             EditorNumber="1"
  77.                             EditorsInForm="1"
  78.                             button="Button"
  79.                             AllowCustomize="True"
  80.                             ButtonsEdit="True"
  81.                             ButtonsFontSize="True"
  82.                             ButtonsFontStyle="True"
  83.                             ButtonsFontColor="True"
  84.                             ButtonsBullets="True"
  85.                             ButtonsIndent="True"
  86.                             ButtonsAlign="True"
  87.                             ButtonsHyperlink="True"
  88.                             ButtonsPicture="True"
  89.                             ButtonsAbout="True"
  90.                             FTPServer="ftp.idontknow.com/ewebedit/images"
  91.                             FTPUsername="username"
  92.                             FTPPassword="encryptedpassword"
  93.                             ImagesPath="../images"
  94.                             WDDX="#ImageWDDXPacket# #HyperlinkWDDXPacket# #FontWDDXPacket#"
  95.                         >
  96.                     </td>
  97.                 </tr>
  98.                 <tr>
  99.                     <td colspan="2" align="center">
  100.                         <input type="Submit" name="Button" value="Save">
  101.                         <input type="hidden" name="action" value="edit">
  102.                         <cfoutput><input type="hidden" name="edit_id" value="#edit_id#"></cfoutput>
  103.                     </td>
  104.                 </tr>
  105.             </table>
  106.         </cfform>
  107.         </cfif>
  108.     </td>
  109. </tr>
  110. <tr>
  111.     <td bgcolor="#639C63" align="center" valign="middle"></td>
  112.     <td height="25" align="center"><a href="javascript:history.back();"><font size="2" face="verdana, arial, helvetica">Back</font></a></td>
  113. </tr>
  114. </table>
  115. </body>
  116. </html>